package com.mc.cloud.mall.user.model.mapper;

import com.mc.cloud.mall.user.model.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @ClassName UserMapper
 * @Author MC
 * @Date 2021/5/20 16:56
 * @Version 1.0
 **/
@Repository
@Mapper
public interface UserMapper {
    
    int deleteByPrimaryKey(Integer id);
    
    int insert(User record);
    
    int insertSelective(User record);
    
    User selectByPrimaryKey(Integer id);
    
    int updateByPrimaryKeySelective(User record);
    
    int updateByPrimaryKey(User record);
    
    User selectByName(String userName);
    
    User selectByNameAndPassword(@Param("userName") String userName, @Param("password") String password);
}